/* eslint-disable @typescript-eslint/no-var-requires */
const { merge } = require('webpack-merge');
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const TerserPlugin = require('terser-webpack-plugin');
const Common = require('./webpack.common.js');

module.exports = merge(Common, {
  mode: 'production',
  plugins: [...Common.plugins],
  optimization: {
    minimize: true,
    minimizer: [
      new TerserPlugin({
        extractComments: false,
      }),
    ],
  }
});
